import request from '../network/request';

// 会员积分购买
export const add = (query) => {
    return request({
        url: 'index.php/index/Port/add',
        method: 'POST',
        data: query
    });
};

// 会员积分购买记录
export const portorder = (query) => {
    return request({
        url: 'index.php/index/Port/portorder',
        method: 'POST',
        data: query
    });
};

// 会员结构图
export const index = (query) => {
    return request({
        url: 'index.php/index/user/index',
        method: 'POST',
        data: query
    });
};

// 会员结构图
export const avatar = (query) => {
    return request({
        url: 'index.php/index/user/avatar',
        method: 'POST',
        data: query
    });
};

// 我的积分
export const port = (query) => {
    return request({
        url: 'index.php/index/user/port',
        method: 'POST',
        data: query
    });
};

// 小号列表
export const avatar_list = (query) => {
    return request({
        url: 'index.php/index/user/avatar_list',
        method: 'POST',
        data: query
    });
};